package models

import (
	"cgs-server/server/model"
	"go.mongodb.org/mongo-driver/bson/primitive"
)

type Notice struct {
	Id                string `json:"id" bson:"id"`
	Msg               string `json:"msg" bson:"msg"'`
	model.TenantModel `json:"-,inline" bson:",inline"`
}

func (w *Notice) SetId(id primitive.ObjectID) {
	w.Id = id.Hex()
}

func (w *Notice) GetId() string {
	return w.Id
}
